﻿export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        name: 'login',
        path: '/user/login',
        component: './user/login',
      },
      // {
      //   name: 'bind',
      //   path: '/user/bind',
      //   component: './user/bind',
      // },
      // {
      //   name: 'wechat',
      //   path: '/user/wechat',
      //   component: './user/wechat',
      // },
      //切换单位
      {
        name: 'select',
        path: '/user/select',
        component: './user/select',
      },
      //传媒大脑 登录入口
      {
        name: 'brain',
        path: '/user/brain',
        component: './user/brain',
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/',
    redirect: '/home',
  },
  /**
   * ==================================================
   * 首页
   * ==================================================
   */
  {
    path: '/home',
    name: 'home',
    icon: 'HomeOutlined',
    component: './home',
  },
  /**
   * ============================================================================================================
   *
   *
   *
   *
   *                              手机端web
   *
   *
   *
   *
   *
   * ============================================================================================================
   */

  //全域线索归集
  {
    name: 'aggregation',
    path: '/mobile/aggregation',
    component: './mobile/aggregation',
    // access: 'inIframeShowCuesActive',
    layout: false,
  },
  {
    // name: '选题线索详情',
    path: '/mobile/aggregation/components/PageDetailsAggregation',
    component: './mobile/aggregation/components/PageDetailsAggregation',
    // access: 'inIframeShowCuesActive',
    layout: false,
  },
  //选题智能策划
  {
    name: 'cues',
    path: '/mobile/cues',
    component: './mobile/cues',
    // access: 'inIframeShowCuesActive',
    layout: false,
  },
  {
    // name: '选题计划详情',
    path: '/mobile/cues/components/PageDetailsTopicRender',
    component: './mobile/cues/components/PageDetailsTopicRender',
    // access: 'inIframeShowCuesActive',
    layout: false,
  },
  //宣传工作指令
  {
    name: 'instruct',
    path: '/mobile/instruct',
    component: './mobile/instruct',
    // access: 'inIframeShowCuesActive',
    layout: false,
  },
  {
    // name: '宣传指令详情',
    path: '/mobile/instruct/components/PageDetailsRecord',
    component: './mobile/instruct/components/PageDetailsRecord',
    // access: 'inIframeShowInstruct',
    layout: false,
  },
  //采访要素匹配
  {
    name: 'interview',
    path: '/mobile/interview',
    component: './mobile/interview',
    // access: 'inIframeShowCuesActive',
    layout: false,
  },
  //传播跟踪监测
  {
    name: 'monitor',
    path: '/mobile/monitor',
    component: './mobile/monitor',
    layout: false,
  },
  //全链质效激励
  {
    name: 'assess',
    path: '/mobile/assess',
    component: './mobile/assess',
    layout: false,
  },
  //问题联动处置
  {
    name: 'linkage',
    path: '/mobile/monitor/linkage',
    component: './mobile/monitor/linkage',
    layout: false,
  },
];
